Using wrapper function for last insert ID