The management of electronic documents is considered as one of the most important problems that have been discussed in this age. That is due to its effectiveness and significance in providing a variety of services in different governmental departments. Therefore it was necessary for many countries to rely on an electronic documents management system. Even such systems have many advantages, but they have also some cons such as the application inability in all foundations, incapability of sharing data between the foundations except through a middleware, difficulty of following up the dealings by their owner, etc. These problems are due to the absence of a generic and uniform structure between foundations. Such structure may lead to an incorporation and collaboration between these foundations. In this paper, we have made an analytical study for some systems showing their cons, then we have proposed an algorithm for following up any dealings regardless of their type or the department which will manage it. Then we proposed a design for a dynamic database which could be expanded according to the foundation's needs.