changed the scope of table definitions - out of __init()