added connection sharing to MySQLCore class