use sqlalchemy exceptions on tag query in Data model
removed unneed Tag.type field
initial brain migration
better tag handler in Data model