Uber code cleanup
Initial untested implementation of DatabaseHelper

DatabaseHelper will hopefully take over all the manual managed SQL
Database Helper and SQL rewrite-ish

* Add parameter support to DBHelper
* Replace all the SQL in Server to use the helper.. my gosh!
* Let's never do that much SQL ever again
Missed a few there

Update more syntax to new Database system.
Note: Still not tested!
That's embarissing
Too tired for this nonsense
Who derped! D is GUID format
Add regions, pooling enum and more comments
Add dbdiag command and Database diagnostics

Also fix NPE bug
Fix String format order

That was why my averages were wrong
Merge pull request #718 from nevercast/feature-databasehelper

Feature: Database Helper & Code Cleanup
Getting rid of inconsequential compilation warnings
Catch generic exceptions in CleanDatabase, clean up countShipsInDatabase query, tweak load count message
Restore original vessel loading message, fix issue with countShipsInDatabase always returning NULL/0
Minor tweak to vessel loading message to reduce any possible user confusion about update-count vs actual-loadable-vessels-count
Fix server's vessel count, ensure intial sync only happens after flight scene fully ready, always handle updates during initial sync fully
Fixes #605
Add flight chat offset, retool chat line splitting to help ensure the chat box can't be pushed off screen
This can still be broken if you try hard enough and splits some lines a little early, but it works well enough for the moment compared to the old solution
Fixes #628
Don't show an error message if optimization fails due to new/empty DB
Minor error logging improvements for Server.hostingLoop
Get rid of some chatty debug log entries, fix bug in live-server optimization