improve mysql_client.py