finishing homework, creating routes and views and saving to db