ticket:7 add friends db
ticket:7 change implimentation friends db
ticket:7 add tests