Some tests of sql stuff