This function can handle REST API connections or JDBC connections. There is a benefit to
calling this function for JDBC connections vs a straight call to dbGetQuery() in
that the function result is a tbl_df vs a plain data.frame so you get better
default printing (which can be helpful if you accidentally execute a query and the result
set is huge).