Add Views, Models and Postgres functionality

Homework 07
Add Views, Models and Postgres functionality