Support multiple database configurations

Support multiple database configurations by setting a config prefix value.