Unifying Memory and Database Transactions