Saving the last modified date in databese