fix(dbversion): save db version on connection