typo on var name
use home var for dbpath construction