UPLOAD FILE TO DATABASE AND DELETE FILE HANDLE