Added new model

Added a new model function that fetches all categories.