Added last insert id function