Changes that allowed to run in Mysql strict mode

Please review and approve these changes that allowed this brand to be installed and run successfully in Mysql with strict mode enable.