fix record __construct for non int id in db table