added view page. set up db. requires authentication for upload and view page