private static function insert(Article $model)
 {
     $db = Database::getInstance('app');
     $query = "INSERT INTO articles (title,introNewsData,newsData,picture,thumbnail,createdAt,category_id,isPosted) VALUES (:title, :introNewsData, :newsData, :picture, :thumbnail, :createdAt, :category_id, :isPosted);";
     $result = $db->prepare($query);
     $result->execute([':title' => $model->getTitle(), ':introNewsData' => $model->getIntroNewsData(), ':newsData' => $model->getNewsData(), ':picture' => $model->getPicture(), ':thumbnail' => $model->getThumbnail(), ':createdAt' => $model->getCreatedAt(), ':category_id' => $model->getCategory_id(), ':isPosted' => $model->getIsPosted()]);
     $model->setId($db->lastId());
 }