Fetch objects from database, converted to json