Update index.js

Added view to upcdatabase..