Storing CakePHP log into database