Refactor Upload class
More refactoring of Upload class (add comments)
Remove old sql code from Upload class
Refactor File class
Remove old sql code from File class