Do you think you could use the `:query` action from the database cookbook here? Instead of building up that `sql_command` String.