cw : fix drop database bug