Refactors InsertIntoHiveTable to a Command
Minor refactoring
Adds more tests