Handle new lines in custom SQL statements