Remove hardcoding of list of unsupported versions

Instead, query it from the database, so that it's properly updated when
a new release goes out of support.