add commit to database after user updated