try to get categories from db