Create tables based on a data structure