update database def