Indexing links to couch db