refactored vertica loader a bit