Added function to get category catalog from db