select records by fields done