Use AMPDBHOST, don't hard code localhost.