Properly clear the sessionproxy database when disconnecting