fix #46 db.version() is not permitted on some databases