Update record.class.inc.php

Use API for Get Insert ID