Database system based on files