Clean up and standardize SQL function comments