getID function added in ConnSQL