changed date_scheduled to created_at in query