Tested and fixed PDOFactory