fix issue #16 add tests for sql.py