Fix current_state bg update to work on old SQLite
Fix current_state bg update to work on old SQLite

matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse,matrix-org/synapse