Changing to cakephp for more flexibility