Generate tables with sqlimport when necessary