episode 10 additions - note I used postgres rather than mongo