Update of sqliteSGP to accomodate HI groupings