using pymysql now

code should work to connect to server to query data