add missing has_coverage from SQL
use neater direct DB connection instead of messing with registry