make sure the db dir is set