A civil rights group has filed a lawsuit that the Chicago Police Department relies on a database that erroneously names people as gang members.