new sql with tables for tags and categories