Clean up sql compute