Minor bug fixes with threading BPay schedules

Weird problem isolated:
line 116 in BPay.cs  // new Database().setNextBpay(paymentID);