added configuartion to connect mongodb