reduce duplication in provider_mysql_client implementations