Removes line breaks from the queries in order to avoid sqlite3 syntax errors