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.