database updates

data is sent from client, processed, added to database accordingly.
next step: send data back to client