update sql and add group and member