Get a database out as a json-object