public static List <Account> SelectAccounts() { var sql = "select * from account"; var records = new List <Account>(); db.ToRecords(db.ExecuteQuery(sql), out records); return(records); }