Changed query for tags associated with this artifact to match the actual DB schema, and extracted that to a method
added method comment
Merge pull request #685 from SynapticNulship/reportbug

Fix SQLITE_ERROR exceptions seen in the log when generating reports.