Database and file operations