db_mongodb: log query content in debug level
db_mongodb: proper handling for null values in insert