starting chapter 12 exercise my_db_gen