Create sqlite table tags_entries only if not already exists

Resolve #367 and maybe #366