set up database query in views file, passed in context dict to template, update template index page