use extra database mapping to get correct db url

see https://github.com/dimagi/commcare-hq/pull/5025