Basic query persistence.