finishing sql tests, adding timing