Added query for category table to installer