Restored DatabaseComp.
Comp.withSession handles exceptions.