Adding Tags through SQL - changes get lost

Unfortunately I can’t tell you more about the database structure, but I can point you here: