Pure-python SQL driver implementation.