fixed the middleware. Will now correctly pass off request to
the metadata server and will return a db dump.