Added connection to mongodb and a submission form