open database
create tags table if doesn't exist