Fixes to DbConnector.