Only create SQL views for database version 7 and above
Updated version strings for v1.5.1 release
Merge branch 'hotfix/db_upgrade'