sql tests

This works for me. /cc @shuyangzhou