Added SQL_MODE for copy and move operations to prevent import errors 

When SQL_MODE is not set, the mode might be MYSQL40 which creates export statements for tables that it cannot import. This causes errors when moving or copying databases.