add index to userid