public async Task <T> First() { string query = GenerateQuery(typeof(T)); DatabaseResult <T> dbResult = await Database.Query <T>(query); List <T> list = dbResult.ToList(); return(list.Count > 0 ? list[0] : default);