add conditional for drop table