Fix src exports, make couch db configurable.