Issue #2236983 by quietone, DenEwout: Not at all clear how/when Database::addConnectionInfo should be called (cherry picked from commit 3c075db5)