improved databasefile