couchDB importer fixes and startIndex argument