refactored db config priorities to support multiple regions and zones
Updated docs, minor bugfixes