Accounting : Modify db some functions