Lesson 2: Database and model setup