Optimize inbox SQL queries

Could this be renamed to inbox_row_common_fields, or something similar that would make it clear that what's coming out is inbox rows and we then have two types of rows, conversations and transactions.