Fix database file numbers