imported hashlib and successfully uploaded the file and corresponding entry in the db