Fixer database dir issue