Finally got rid of the connection leaks (tested for select and ask; describe and construct not tested yet)