added wrapper around impala connection
replaced impala calls with impala wrapped function