update and moving database