basic server implementation - saving/reading to/from mongodb; showing graph