Added DB connection
Added sanitize to general functions