added mongodb connection
style updates