Update DbCore.php to turn off strict mode

MySQL at least in some installations is put into strict mode by default. As a result INSERT queries that do not include all columns in a table without default values fails. Most notably this was causing add user to (silently) fail. Setting sql_mode here prevents having to change the MySQL configuration.