some issues with MySQLdb