- fixed the retrieval of the generated ids
- fixed a wrong error message in BaseConnectionWrapper