Made a variety of fixes and output more readable

- Improved the readability of the output by adding spaces between values
- Improved the readability of the output by adding newlines before SQL statements
- EncodeMySqlString() replaces curly double quotes with straight double quotes
- EncodeMySqlString() replaces apostrophes with double apostrophes
- EncodeMySqlString() no longer removes any other characters
- Lowercased "publicationId" and "writerId" because mixed case columns need to be quoted