Added couchdb support: fixes #3

- added flag to choose between databases