check for already spent outputs with a single query during block validation

+ add index on txin (prev_out, prev_out_index)