Added a restartInstance() method

Useful for monitoring db load and restarting the instance if required.
Merge pull request #1 from jv2222/patch-1

Added a restartInstance() method