fix db file