saved functions file

saved functions file so new function to sanatize post data would be
usable, called a gloabl for $connection