ADD ERROR MESSAGE TO SERVER AND STOP SERVER FROM CRASHING

add error message for when server is started without mongodb instance running
add dependencies for graphing