add set/get for AnyDBM.

Signed-off-by: Ryan Miao <jmiao@redhat.com>