made sql in cg_search viewable by allen and rebecca