connect to mongodb
schema defined