added error handling for databse connection
added sharejs to code & chat ace