Add helpers block of code with function to retrieve data from database in postgres. Create layout and index views.