Pass configuration into connection for proper character set handling.
Properly set character set and collation when creating MySQL tables.
Fix bug in database connection.
Fix some tests. Cast migrations to objects.