Updates to sql and paper.