Tidy.
Created command object for upload file.
Added Mongo metadata creation to command object.