Refactor readRecsWhere to readWhere