Notebook titles are pulled from database, trying to create JSON objects from entries