Documented the Database class and added more transaction features