BUGFIX: MySQLdb Changed; Query -> Excecute Command.

Wrong handling of cursor and connection objects in mysqldb library.
Chaned con.query() to con.execute(). Also wrong worked on commit and
rollback handling.