added payment date code and added new balance column to table