Added updates to communicate with DB