public static function sendMessage(Message $message)
 {
     $db = Database::getInstance();
     $query = $db->prepare('INSERT INTO messages (senderid, recipientid, content, created) VALUES (?, ?, ?, ?)');
     $query->execute([$message->getSenderID(), $message->getRecipientID(), $message->getContent(), $message->getCreated()]);
 }