set up tables directory