add owner to contract table query