comiting version of sql that works with the current set of objects