Improve file handling and uploading to DB
Add compression