script to update from noel's pmt database