Add a sql helper in order to test if a table is temporary