[Hackage] #437: generalise the package db settings and flags