added group sql