Basic classes for file based databases