Cleaned up old CartoDB SQL API code.