Add read-only functionality to Db module; bug fix for Db.get().

Change-Id: I1737fd5bcef392007dd4edfe22bf8b886e508cc1
Merge "Add read-only functionality to Db module; bug fix for Db.get()."