Improved application created event detection for missing view and added missing import in couchdb example.