MINOR DatabaseFile now comparable, removed duplicate code