Modifying pubsub author save function to use mongoose