use tx support to get generated key while inserting