adding db dir
changing configuration method