Cookie fix and config changes

- list was wrongly named (cid -> lid)
- db info moved to config