fixes negative tags not working if they don't exist
fixes #431
Merge pull request #432 from DakuTree/patch-sqlfix

Fix for #431 - Fix negative tags not working if they don't exist.