database for json objects in javascript