Allow server to be properly restarted with  without losing any data