Fix deprecated dynamic lookups of variables in site_couchdb (#6286)

Change-Id: I318944a6872a53ff9c533704514da339426d9401
Merge branch 'develop' of ssh://review.leap.se:29418/Platform into develop