added trades_by_interval migration
switching table to symbol_and_quantity
new query table syntax