Page controller added, postgres confg updated to work on local machine.