started using PDO
refactored site factory