added datastore and ndb stuff in upload handler, viewsingle