Fixed the drop table if database is not the default one.