Fixed problem with the database connection

Added a new function to the class MainWindows (Main), Function call
mysql_get_proto_info occurred earlier than passed parameter dbconnect.
night restructuring

Delete unnecessary function.
Added variables to work with SSL.
Standardize the names of the previous variables.