This class is a MySQL database access wrapper. It can establish connections, manage transactions, execute queries, and retrieve results into arrays or single values. If the connection is lost, it tries to reconnect before executing any queries.