Re-did sanitize()

Went back to a self-coded sanitize function, versus just addslashes()