Fixed threads so they would run. Switched to interfaces.
Databases for IBD are now created. Probably not perfect yet, but
working.