public async Task <IList <Category> > GetCategories()
 {
     db.Collection = "categories";
     return(await db.GetAll <Category>());
 }