Alright, i did some research and found that we need to set the recordset and connection to "nothing". this will clear it from the memory.
only problem is i dont know how to write this in JS. the site had an example with ASP..
does this give us a lead in solving the issue?