Raise exception if wrong db name; use sys.version_info