add abort function for sql interface