fix database file