Use anonymous objects instead of arrays when using parametric SQL queries