take in Realm database