back end work done with adding and updating emp record