Issue #2066557 by mparker17, valthebald, chakrapani: Convert system.module's test's database_test.module's JSON functions to a new-style controller