A basis for social networking applications made with real-time events and a graph database