Change to SQLite DB and fix predicates
* Bindings for metadata menu item
* flatMap implementation
* Hook up Metadata window
* Reorganize project
* Minor code style cleanup