public SQLite(Logger log, String prefix, String directory, String filename) {
		super(log,prefix,"[SQLite] ");
		
		if (directory == null || directory.length() == 0)
			throw new DatabaseException("Directory cannot be null or empty.");
		if (filename == null || filename.length() == 0)
			throw new DatabaseException("Filename cannot be null or empty.");
		if (filename.contains("/") || filename.contains("\\") || filename.endsWith(".db"))
			throw new DatabaseException("The database filename cannot contain: /, \\, or .db.");
		
		File folder = new File(directory);
		if (!folder.exists())
			folder.mkdir();
		
		db = new File(folder.getAbsolutePath() + File.separator + filename + ".db");
		this.driver = DBMS.SQLite;
	}