added JSON to DB handler