switch to pymysql