Inital work to database update functionality