Turned off debug output.  Removed reloading of .bash_provile because I dont think it is needed.  Fixed mongo db install - apt-update needs to be after updating the source list.