Aut-1345: DB locked error when adding an image to a case.

The tags related functions do not close the resultset returned by SQL queries. This seems to lock the database and manifests in a D/B locked Error when a disk image is added.