Add resource_id index to user collection