Added document mangement functions to LibreDB