Add toJSON method to DBModel.