Update transaction.js

use debug level for database connected log