week6, day1: redo to do database with active record