Revert "moved db details"

This reverts commit 7140e72ffcdbbcd4fe8548611c2f60957e52a47a.