Fix SQL queue manager so it actually stores and executes the pre and post transaction SQL statements.