Added basic get-client fn.
Fixed get-subscription fn where db val was needed and db conn was passed.