fix tmp db