Fixed failed tests which require exception when we are catching it.
Added DBDecoder stuff to DBCursor

Methods added:
- getDBDecoderFactory
- setDBDecoderFactory

When decoding - we will use either collection codec or DBDecoderAdapter from provided factory.