first draft of instantre. Cleaned up mongo storage