a simple wrapper for python MySQLdb