attempts (but fails) to combine all the process functions in link_model in to one function
Revert "attempts (but fails) to combine all the process functions in link_model in to one function"

This reverts commit a9e43ae393e860720d14166c648b7b3c1db47098.
Revert "Revert "attempts (but fails) to combine all the process functions in link_model in to one function""

This reverts commit c6b254f16d07232d264e0db98b89f53d85c535f7.
prepares created internal and external links for the database and webpage (debugging version)