fixes incorrect upgrade query to ensure it works
Merge pull request #424 from n8fr8/bug_2920_missing_messages

fixes incorrect upgrade query to ensure it works