moved caterories from sql to pg