update and stop update database