fix DB file