Update the database dir