made the site factory work for PDO