Add sql for the last commit