database
connect to mongodb
typecheck with annotations