get insert id from correct object