get insert id bugfix