Document Management in a Online Document Database