write follow relationship to database