Database transactions

Database transaction concepts and handling.