optimized MYSQLConnector for effective memory management