bugfix for 404s, added mongo connect code, pass connection through to controller requests
removing schemas (outdated)