changed from pymysql to mysql.connector; added no cache fallback