Database schema for SQL Server adding tags support + misc. fixes