Small wrapper around MySQLdb library. MyGate can get SQL query and save result in csv or return rows. Module supports a few databases.