correct db file path
add logs directory