Added method to get the last insert id