dbwraper for MySQLdb connector