change models to use PEAR PHP standards