Rundown database before starting up, in case of abrupt shutdown.