Update tag.py to use id rather than DEFAULT for INSERT