Updated MongoDb and MsSql implementation with the same workaround as starcounter when returning json.