Added function to add installments daily pay to dayflow entry and flags to database entry