fixed the database files