Added database file abstraction