Move commit to last thing so data isn't rolled back.
Make sure we clear any transactions since we no longer use autocommit
Based on findings and the desire to not create windows in which data could
possibly be lost (unexpected slurmdbd termination) we took out the commit
thread and now commit after each call.  This is still very fast in
comparison to what we used to do and to the normal user I don't think
any difference will be noticed.

If in the future this needs to be revisited just revert this commit.
Add new DebugFlags for the Database instead of always using debug3/debug4
Add DebugFlags to the slurmdbd
Add debug_flags to the mysql_plugin
Add reconfigure hook to the accounting_storage plugin.
Put new debug flags to use.