Basic adjustments to friend database logic for transactions