added client and server handler to send data to database