Added database object conversion to JSONObject
Removed unnecessary json response type