Made getProfileByUserId a static function