Prepare the interface to introduce the recursive couchdb queries.