active record fixes
table style kill count + mvc for it
query fix