printing the sql