fixing database files