Document database transactions. Closes #194.