introduced a mongo-db connection as first approach