Fix SQLLegacy to allow parameters as mapping
Add SQL read_parameters tests
PRF: Optimize axis1 for C order