Put all tags for a given instance into a list for a single batch insert

Addresses #414 by using the execBatch feature of QSQLQuery.

Might still be improved if we can do other operations as batch inserts
as well.