updated database population tool for faster inserts using update method of couchdb