qe: tidy up `extract_selection_result` family of methods (#4744)
- Rename `extract_selection_result` to
`extract_selection_result_from_db_name` for symmetry with the
existing `extract_selection_result_from_prisma_name`.
- Likewise, `extract_selection_results_from_db_name`.
- Factor out duplicate code into private `extract_selection_result`.
Follow-up to https://github.com/prisma/prisma-engines/pull/4743.