added some more DB use code in client code