Basic functionality, connected to mongodb