Properly stops postgresql after creating db