Fix group_by query in SearchDocumentManager

SearchDocumentManger has a raw group_by sql query for search.
sd.project_id and sd.status was missing from the group_by clause.

This is due to the sd.* in the SELECT.