Retrieve only those users that haven't been updated lately from the DB

Pulling every user is going to be a painful table scan, plus a sort by an unindexed column, means this query is not going to scale well. So we have the DB filter what users are returned!
Typo: updatedAd. Also, as long as you are improving the where clause, can you add 'AND deactivatedAt IS NULL'?

As a style thing, I've been leaving out the table name from raw SQL queries, so this would be more like:

    where: ["updatedAt < DATE_SUB....

I'm open to hearing reasons why that is / isn't advisable, though.

Thanks for working on this, good change!