Fix domain database initialization
Fix domain database initialization

To fix bug 1089916, calls to db_api.configure_db() were changed to
setup_db_env(). However, the gateway domain initialization didn't get
the memo. This patch makes sure setup_db_env() is called in all the
relevant places.

Fixes bug 1131705.

Change-Id: Ieec141192b8a5a045dadba6d70abaa25748b85b2

kfwang/Glance-OVA-OVF,scripnichenko/glance,wkoathp/glance,akash1808/glance,redhat-openstack/glance,klmitch/glance,JioCloud/glance,SUSE-Cloud/glance,openstack/glance,citrix-openstack-build/glance,jumpstarter-io/glance,tanglei528/glance,rajalokan/glance,tanglei528/glance,kfwang/Glance-OVA-OVF,vuntz/glance,cloudbau/glance,ozamiatin/glance,takeshineshiro/glance,sigmavirus24/glance,akash1808/glance,citrix-openstack-build/glance,vuntz/glance,jumpstarter-io/glance,redhat-openstack/glance,JioCloud/glance,stevelle/glance,klmitch/glance,openstack/glance,rajalokan/glance,dims/glance,ozamiatin/glance,takeshineshiro/glance,wkoathp/glance,openstack/glance,saeki-masaki/glance,ntt-sic/glance,saeki-masaki/glance,stevelle/glance,dims/glance,scripnichenko/glance,paramite/glance,rickerc/glance_audit,cloudbau/glance,paramite/glance,SUSE-Cloud/glance,sigmavirus24/glance,ntt-sic/glance,darren-wang/gl,rickerc/glance_audit,darren-wang/gl