Adding no_of_days column in leaves table and other changes.