Limit the query select on deleteExpired. Fixes #13