fix bug so id of challenged friend is correctly written to DB