Do not connect to DB when getting config

Resolving issue #287