Improve client db

this adds the functionality mentioned in #7 
actually, make that client_json