Class to manage connections and data to MySql