Enable apply button if records changed in select query. Should fix issue #20. Note that other code still needs to be fixed (commit button etc); also needs performance test