and the sql