Issue #191: Prevent the installer from attempting to use tempstore before the database exists.

PR to fix https://github.com/backdrop/backdrop-issues/issues/191.