+Transactions.

Added transactions to database objects. Also other minor changes.