getting database to update