Bad detection of schema version

This patch solves the bug diagnosed in issue #100 record.
The schema version is queried and the application displays
an appropriate error message even if database schema has not
been converted for 2.2.
(cherry picked from commit e75b24cbde0602e27903fb373219bee339d2a9eb)