Created installation before filter if mongodb connection hasn't been found

* Writes a .cog.json file with the site id and mongo connection string