Implement functon db_last_insert_id().