Unset any sql_modes applied to MySQL to avoid breaking the application.

This is due in part to MySQL 5.6 series setting sql_mode to STRICT by default
which breaks part of NamedManager schema.

This change is a short term workaround till the schema fix is completed as per
issue 390 and issue 389.