use Database-Transactions
added protection against multiple transaction-starts
added function documentation
transaction-support for PostgreSQL added
tidier implementation + bugfix
each request should be a transaction
Transaction functions throw dbExceptions now
committing a Transaction is done now within try-block
copy and paste errors corrected
begin_transaction in mysqli not before php5.5 - used alternative