fixed query script confdb management