Change the way to access to the database directory