public function deleteMessageById($id)
    {
        $sql = 'DELETE FROM ' . $this->messageTable . ' WHERE message_id = ?';
        $stmt = $this->getDb()->prepare($sql);
        $stmt->execute(array($id));
        return true;
    }