main creates Realm() instance