json data passed

json data passed to server and query is written to update in database