Get file info in single query, add date field, use date for versioning