Modify GetParametersFromArray to use string->Write instead of memcpy
Use sql as void* and cast where necessary