fix database files