table name goes to config.json
base dir can be given as parameter