public void prepareConnection(){
		try{
			closeConnection();
			Class.forName("com.mysql.jdbc.Driver");
			connection = DriverManager.getConnection("jdbc:mysql://localhost/"+(dbName)+"?user=root&password="+rootPass+"");
		} catch(SQLException e){
			success = false;
		} catch(ClassNotFoundException e){}
	}