update database definition