Three table structure setup