Improve client db

this adds the functionality mentioned in #7 
sure, but this is 4 lines, so it would take up more space to put that into a function and it isn't used elsewhere. These are good indicators that it is not necessary to put this into a function. 

The only reason to potentially refactor this into a function would be for readability, but that also doesn't seem necessary here.