Add support for csv drop table generation.

Added a name lookup function.