cui sql queries updated to new version 3 syntax