Site.pp modified for automated sql insertion