Issue #2: Added use_unicode flag.
Refactored the mysql connection.