Better error handling for client.Putdir
Started implementing transactions on top of the DB
Better error checking and transaction handling