finish chapter 3 exercises, switch production databse to postgres