Requires a name and an optional function used to rebuild from json
SimpleDatabase({ required this.name, this.fromJson, });