exercise 33 - database conn. & some functionality