extDB/logs etc are now located in same location as extension

Also cleaned up main.cpp abit