database mapping with php-ActiveRecord