fixed drop tables function.