Prepped server and views for uploads
Fixed queries to only insert if entities do not already exist
Fixed query.js to use a forEach instead of raw for, implemented upload handler