Sqlite driver cleanup

Remove unused parameter from _tagids
Remove unreached fork in _tagids
Testing: add actual database write
SQLite driver: complete test cover