Creating dogs into the database and showing them on the index page