if (filters.hasBeenReplaced && filters.hasBeenReplaced !== "") {
        sql += " and hasBeenReplaced = ?";
        parameters.push(filters.hasBeenReplaced);
    }