Added References clause in 'groups' table to 'parent' field