[TASK] Save unsubmitted transactions to database

Caveat: All transactions (that are not tej-class) will be saved, whether they succeed or not, and they'll never be cleaned up.