Exclude inactive users when querying fro cron script