DBRecord is now JsonSerializable

Worked ot most subscription related bugs introduced by refactoring