cur.execute("select username, domain from accounts where (created_at + interval '"+interval_time+"' > (now() - interval '1 hour')) and domain is null and id in (select account_id from users where approved and not disabled)")
cur.execute("select username, domain from accounts where (created_at + interval '"+interval_time+"' > (now() - interval '1 hour')) and domain is null and suspended_at is null and id in (select account_id from users where approved and not disabled)")