change $db->get_temorary_id_table not to require a transaction
Merge branch 'master' into RELEASE_20140325