add transactions in 2 places in lib_users