Replace first db call with User.where.not