Ported 2 new methods to Database.

SequenceHasAttachments and GetPossibleAncestorRevisionIDs.