Issue #134: original issue #1683836 fixing database topic sample code.

This fixes https://github.com/backdrop/backdrop-issues/issues/134 original issue #1683836 fixing database topic sample code.