Updated to take more arguments including database and avro schema repository.

Also some modifications needed to be made for hive error checking as having items in the error log were no longer valid for determining if it is actually an error as a table may not exist before the command is run if the repository uri is being supplied.  This means hive_success_check has to always happen directly after the actual hive call.

This method also caches the avro schemas by id for each topic on hdfs using the same namenode HIVE is communicating with.