Added saving and error catching for mongo page save