Updated attribute key insert id 

When using the mysqli adodb driver (which I use for transactional
 support), you can't have any queries between an insertion and a request for
 the insert id or adodb will return 0.