Created a Rock Job to launch a workflow and a Workflow Action to run a SQL query.