Added a restartInstance() method

Useful for monitoring db load and restarting the instance if required.