added mongodb connection and contact api