printing out the sql commands