cleanup database.yml file and finish basics for edit, update, and index views