Using wrapper function for last insert id