Fixed error where the refernceInfos where not getting saved; on getPaymentsMap it now looks in DB for referenceInfo instead of just creating a blank one.