add index for users and change method
update schema
Merge pull request #755 from YaleSTC/658_increase_speed

add index for users and change method