Simplified selection of database rows