(breaks compat) db: improve configuration