Changes express middleware returned function to avoid assigned req.db and req.models more than once (#76)