debug printf removed from afmysql_dd_set_database
added a more sophisticated afmysql_dd_begin_txn function