Add an API for off-thread SQL transactions.