add exercise 3 of the second day in postgres