added DB inserts for all tags

I commented out a DB tag inserts because they are taking very long time.
Please modify if any efficient way is found.