Fix FilteringStore.get_user_filter to work with postgres
Fix FilteringStore.get_user_filter to work with postgres

matrix-org/synapse,iot-factory/synapse,TribeMedia/synapse,iot-factory/synapse,TribeMedia/synapse,matrix-org/synapse,matrix-org/synapse,iot-factory/synapse,matrix-org/synapse,TribeMedia/synapse,matrix-org/synapse,TribeMedia/synapse,TribeMedia/synapse,matrix-org/synapse,iot-factory/synapse,iot-factory/synapse