Quick fix for broken options reference.

The Document/Attachment and Security objects which are bound to Database
do not have a correct options reference.

A quick fix for logging has been implemented but this requires a
proper fix for the options reference.
0.0.44