Store cursor/connection for later use to avoid leaving lots of connections open.