extract_features.cpp bug fix. the orignal version cause the tool to writ...

Fixed a bug in extract_features. The original version cause the same data to be written to every DB when extracting from multiple blobs.