get the last inserted id from do_query() for buildreq cache
0.7