Updated doPost to take in json from client and store in DB