Fix JSON encoding error with sets + additional logs + more meaningful de...

...fault for kwargs on DB connector (OMS-380)