terminate sql command