Speed up purgeOldUsers task
Merge pull request #500 from t00thpick1/master

More SQL stuff