quote identifiers in connection if necessary