first naive version of connection to MongoDB