Legal department documents database application