SQL processing related utilities