added logging for db transaction events