added more linkage between creating a cg table in the db, and adding/setup in the cg_search