added conditional check to determine if tables exist before dropping them