Add Loan cycle counter for client

Update the sql version
Merge pull request #406 from mifoscontributer/MIFOSX-212-B

Add Loan cycle counter for client