Db layer updates (3)

Install/upgrade, quick updates. A few updates and fixes for Db classes.