Fixing postgres script references and screening the python redirect server.