Alfred version: Alfred 4.0.8. For whatever reasons, the workflow is not able to fetch the messages DB.
ls -lah ~/Library/Messages/chat.db
-rw-r--r--@ 1 sabhat staff 2.0M Feb 24 18:49 /Users/sabhat/Library/Messages/chat.db
cd ~/Library/Messages/
sqlite3
.open chat.db
sqlite> .tables
_SqliteDatabaseProperties kvtable
attachment message
chat message_attachment_join
chat_handle_join message_processing_task
chat_message_join sync_deleted_attachments
deleted_messages sync_deleted_chats
handle sync_deleted_messages
[20:02:34.014] iMessage 2FA[Script Filter] Queuing argument ''
[20:02:34.158] iMessage 2FA[Script Filter] Script with argv '(null)' finished
[20:02:34.161] iMessage 2FA[Script Filter] {"items":[{"arg":"","subtitle":"We were unable to access the file that contains your text messages","title":"ERROR: Unable to Access Your Messages","valid":true}]}