Added sanitize() to common functions

needs an actual mysql connection to work