Fix compile error, rewrite parameter binding

- Fix empty statement handling compile error
- Do not directly bind SQLBindParameter, instead create wrapper functions
  for the different parameter kinds in the vapi file.