updating models to work with cakephp