Replaced hard coded data with db, modified index.html.erb