get id with nextval on pre_save