Changed configuration for the MySqlConnection, fixed the class and added
tests