changing pages so they uses the DB data and creating a rating system on rails