connect to database
update user contract