public static void createTables() throws SQLException {
		String query;
		Connection con = getConnection();
		PreparedStatement statement = null;

		if (tableExists(Config.sqlPrefix + "Lifestones") == false) {
			System.out.println("Creating Lifestones.Lifestones table.");
			query = "CREATE TABLE `"
				+ Config.sqlPrefix
				+ "Lifestones` (`id` INT PRIMARY KEY AUTO_INCREMENT, `world` VARCHAR(32) NOT NULL, `x` INT NOT NULL, `y` INT NOT NULL, `z` INT NOT NULL) ENGINE = InnoDB";
			statement = con.prepareStatement(query);
			statement.executeUpdate();
		}

		if (tableExists(Config.sqlPrefix + "Attunements") == true) {// old
																	// table;
			System.out.println("Removing unique attribute from player in Attunements.");
			con.prepareStatement("ALTER TABLE " + Config.sqlPrefix + "Attunements DROP INDEX player").executeUpdate();
			// con.prepareStatement("ALTER TABLE "+Config.sqlPrefix +
			// "Attunements add unique index(player, world);").executeUpdate();
			con.prepareStatement("RENAME TABLE `" + Config.sqlPrefix + "Attunements` TO `" + Config.sqlPrefix + "Attunements_v2`").executeUpdate();
		} else if (tableExists(Config.sqlPrefix + "Attunements_v2") == false) {
			System.out.println("Creating Lifestones.Attunements table.");
			query = "CREATE TABLE `"
				+ Config.sqlPrefix
				+ "Attunements_v2` (`id` INT PRIMARY KEY AUTO_INCREMENT, `player` VARCHAR(32) NOT NULL, `world` VARCHAR(32) NOT NULL, `x` DOUBLE NOT NULL, `y` DOUBLE NOT NULL, `z` DOUBLE NOT NULL, `yaw` FLOAT NOT NULL, `pitch` FLOAT NOT NULL) ENGINE = InnoDB";
			statement = con.prepareStatement(query);
			statement.executeUpdate();
		}

		// statement.close();
		con.close();
	}