Add file selection to initial database loading. Doesn't quite work yet.