use mongoose pre save to save date