added mongo integration. Now saves imgur from re-generating existing triangles.