cleans up SQL whitespace inconsistencies