Rewrite  SQL strings for easy to readable