created all pages for hw7, setup database