Waiting for PouchDB to be open


I need to make sure my database is open before my app runs. I’m using PouchDb over Sqllite. It works great, but I need to wait on startup for the db to be open. Where would be the best place to do this? I can do a db.info call to get back information. The plugins are all loaded, but the database takes a second to be open.

Thanks for any suggestions.