Created a sanitization funciton for sanitizing output and in put in and out of the database.