public static function db() { if (!DashboardCommon::$conn) { DashboardCommon::db_connect(); } return DashboardCommon::$db; }