Added priority table. Updated category table