connected db to server and set up auth post request