Couch base lite not working in iOS device when it is passcode locked

Hi, when an iOS device is passcode locked the couchbase data base is also locked leading to crashes. Is there any way to make the database function even though the device is passcode locked?