add cakephp auto update function