Add transaction ID to database