Switch to HEREDOC for scheduling queries

So pretty!