add logic to insert movies in couchDB