updated database schema with tags