groups as a firebase model