sqlite.c: roll mem() and has() together, optimize for sqlite along with get_groups(). * is now clusters(). speed up get_cluster()