added optional parameter to prevent flushing new missing tags to database.
Refactor loadOrCreateTags() a bit