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.
Merge pull request #310 from raman-bt/develop

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