Fix #6

Fix transactions commiting and also add public $useTransactions flag