Implemented better error handling.
Implemented support for beginning, commiting and rolling back transactions.
Added method for retriving last inserted id.