simplify GetInstance return
try to initialise tables to ensure tablename is correctly defined