Barcode matching when fetching from statusdb

I goofed up in my last PR. Indexes can be single indexed on a dual-indexed flowcell, 
and/or they can have adaptor sequences on the ends that need to be trimmed.