Add a command executor.
Add SQL command file (again.)
Change SQL to be based on pg 9.1.
Update plaintxt version of SQL.
Fix lack of thread context.
Update SQL.