Fetching distinct categories from the db