update database defination