[IMP] document: Remove annoying SQL view that prevents some operations

Following #144, this mades the same for document module