What you just posted has nothing to do with the database. Please ask one question per thread in these forums to help keep topics organized.
I have no idea what you have done or are doing.
"D:\Docs\MojoPortal\MiscUtilities\IndexRecentContent.aspx"
The files it is complaining about are not even part of a web project or solution, those files exist in the source code repository but not as part of a project and you should not try to run that folder in IIS or even in VS. You should open mojoportal.sln rebuild the entire solution and point IIS to the Web folder which contains the main mojoPortal web project, all other projects run in the context of that one.