setting up all tables