update config for mongo and red is
cleanning
update to localhost
clean errors
a main function to be completed