added cat_sub database generation script