fixed the dbpath problem