Database Exercise 1.2 (2nd attempt)