Combined sql values into single command to pass to the sql server for efficiency.