new friendOf table and login scripts