Quick hack to test bash subprocess before local db refactor
Preliminary work on advanced meta-data
Very dirty implementation of safe extraction