Make getopt arguments, and add an argument for table prefix