an encapsulation of python-mysql(MySQLdb)