public void startServer (){
		controller = new Controller();
		
		try {
			sSoc = new ServerSocket(5666);
		} catch (IOException e) {
			System.err.println(e.getMessage());
			System.exit(-1);
		}

		while(!sSoc.isClosed()) {
			try {
				Socket inSoc = sSoc.accept();
				DatabaseThread newDatabaseThread = new DatabaseThread(inSoc, controller);
				newDatabaseThread.start();
				//System.out.println(newDatabaseThread);
			}
			catch (IOException e) {			
				//falhou ao aceitar a socket
				System.out.println("Socket Closed");
			}
		
			
		}
	}