writes recipients to database