simplify special json decoding logic
remove `somesql` plugin from tests, and remove extraneous code
remove `Database.get` only used in tests
remove duplicated Database test and expand assertions on common case