cm_requestClient could use a *counter* instead of storing each id

Incrementing the counter (and getting the new value) needs to be an atomic operation.
so you suggest is just about slitting the 2 sqls? all this discussion because of this? 
I think the sqls have to be send in 1 statement (not sure) but to split them you want @njam @tomaszdurka and @kris-lab to think about this?