feat(api): adding save hook to track update and creation date of document