DB queries produce ordered results