Handle multiple tables