transform every database into a object key value store. This is a fork from Anh Nguyen to support MongoDB