Improved the code of the DBAL adapters

- Fixed a typo in the private method name
- Added a typehint on the function argument