Setting up the tables