updating database JSON output

output kind for different levels of queries
standardized jsonable output from db, including "_id"