activity sql changed