	public void loadDatabase() {
		String DBType = getConfig().getString("database.type");
		Statement stmt;
		try {
			if(DBType.equalsIgnoreCase("mysql")) {
		    	conn = DatabaseSettings.getConnection(this);
		    	stmt = conn.createStatement();
				stmt.executeUpdate(getResourceContent("MySQL/blocklog_blocks.sql"));
				stmt.executeUpdate(getResourceContent("MySQL/blocklog_rollbacks.sql"));
				stmt.executeUpdate(getResourceContent("MySQL/blocklog_interactions.sql"));
			} else if(DBType.equalsIgnoreCase("sqlite")) {
			    conn = DatabaseSettings.getConnection(this);
			    stmt = conn.createStatement();
				stmt.executeUpdate(getResourceContent("SQLite/blocklog_blocks.sql"));
				stmt.executeUpdate(getResourceContent("SQLite/blocklog_rollbacks.sql"));
				stmt.executeUpdate(getResourceContent("SQLite/blocklog_interactions.sql"));
		    }
		} catch (SQLException e) {
			e.printStackTrace();
		}
		try { 
			if(DBType.equalsIgnoreCase("mysql")) {
		    	conn = DatabaseSettings.getConnection(this);
		    	stmt = conn.createStatement();
		    	stmt.executeUpdate("ALTER TABLE `blocklog_blocks` ADD `datavalue` INT(11) NOT NULL AFTER `block_id`");
			} else if(DBType.equalsIgnoreCase("sqlite")) {
			    conn = DatabaseSettings.getConnection(this);
			    stmt = conn.createStatement();
			    stmt.executeUpdate("ALTER TABLE 'blocklog_blocks' ADD 'datavalue' INTEGER NOT NULL AFTER 'block_id'");
		    }
		} catch (SQLException e) {
		}
	}

	public void loadDatabase() {
		String DBType = getConfig().getString("database.type");
		Statement stmt;
		try {
			if(DBType.equalsIgnoreCase("mysql")) {
		    	conn = DatabaseSettings.getConnection(this);
		    	stmt = conn.createStatement();
				stmt.executeUpdate(getResourceContent("MySQL/blocklog_blocks.sql"));
				stmt.executeUpdate(getResourceContent("MySQL/blocklog_rollbacks.sql"));
				stmt.executeUpdate(getResourceContent("MySQL/blocklog_interactions.sql"));
			} else if(DBType.equalsIgnoreCase("sqlite")) {
			    conn = DatabaseSettings.getConnection(this);
			    stmt = conn.createStatement();
				stmt.executeUpdate(getResourceContent("SQLite/blocklog_blocks.sql"));
				stmt.executeUpdate(getResourceContent("SQLite/blocklog_rollbacks.sql"));
				stmt.executeUpdate(getResourceContent("SQLite/blocklog_interactions.sql"));
		    }
		} catch (SQLException e) {
			e.printStackTrace();
		}
		try { 
			if(DBType.equalsIgnoreCase("mysql")) {
		    	conn = DatabaseSettings.getConnection(this);
		    	stmt = conn.createStatement();
		    	stmt.executeUpdate("ALTER TABLE `blocklog_blocks` ADD `datavalue` INT(11) NOT NULL AFTER `block_id`");
			} else if(DBType.equalsIgnoreCase("sqlite")) {
			    conn = DatabaseSettings.getConnection(this);
			    stmt = conn.createStatement();
			    stmt.executeUpdate("ALTER TABLE 'blocklog_blocks' ADD COLUMN 'datavalue' INTEGER NOT NULL DEFAULT '0'");
		    }
		} catch (SQLException e) {
		}
	}
