Correct method for getting last insert id