explicitly set key and value encoding of masterDb. cleaned trailing whitespace.