start on #561

at this point we need the link format and the studies in the db
fixes #561

This should be good to go with all the data on the test server.
Before putting it on production i need to add the column to the
database and update the stored procedure.
Also addresses #559 the userid portion is removed so we can see
if we want to remove the code or leave it in.
removed the issue 559 part of this pull request
Merge pull request #564 from teravest/issue561

Issue561