move db path and logfile path to setting