added optional parameter to prevent flushing new missing tags to database

...e.

Refactor loadOrCreateTags() a bit