MySQL SSL and Compression Support

+ Rewrote parts of database code. Might have reenabled Automatic Reconnects on the way.
+ Made config setting for MySQL Connection Compression
+ Made config settings for MySQL SSL Connection Encryption
+ Added CMake Fix for /Zm on some windows systems