Factor out ec2 methods.
Fix sql syntax.
Commit on locking a job.
Make sure YAML parser gets a string.