Just before restarting DB