added json to database