done except for sql