fix reset database