Fixed and revised database entry on upload
- Refactored zip making function
- Added recursive rmdir function