WL#2882: Change all commands to use select_result

Affects: Server-7.1   —   Status: Assigned

The task is to change all commands to use a select_result.
This will make prepared statements easier to implement.