move insertId and debug from table to orm