Initial implementation of sql contingency.