the database is changed using a query again
added query string cleaning
fixed the whole insert statement being cleaned instead of the individual parameters
added parsing for newlines for smoother printing