Database implementation using pile file