model_transaction_query()
just a basic implementation, will have to improve later
and from now on should not deviate from that...