fixing dbpath