database file fix