Follow-up to d9a89c56ea63e369999ca13f1584eef9e511490f

- Updated db2sql plugin to reflect the latest changes.
- Fixes bugreport:7835, special thanks to ossi0110
  http://hercules.ws/board/tracker/issue-7835-db2sql-plugin-error/

Signed-off-by: Haru <haru@dotalux.com>