use bulk api for reindexing memberships

this improves the performance for objects that have a large number of
memberships
use req.popit for database name rather than deriving it from slug

as they may now not be the same