apply flags on nedb adapter