Main loop: add all config options as replacement patterns
DB/*: add option to set search_path
Merge pull request #91 from plepe/search_path

DB/*: add option to set search_path