Restore connection
Format PEP8
- Change PrimaryKeyFiled to ObjectIdField
- object.pk to object.id
- Add errors.py
- Add ReferenceFiled
Fix AttributeError when call ._doc if value is None