db table mapping in php and item class