Add finalize method to SQLCodecSource which closes DB connection

In general it looks like resultsets are closed once iteration is complete with them.

IGV-1941